#!/usr/bin/python
from pylab import *

# input list here
inlist = np.random.uniform(0.5, 1.0, 30)


length = len(inlist)
index = arange(length)
# inlabel = inlist
inlabel = index

bar(index,inlist,facecolor='#9999ff', edgecolor='white')
# bar(index,inlist,facecolor='#9999ff', edgecolor='none')
for x,y,ylabel in zip(index,inlist,inlabel):
    # scatter(x+0.4,y+0.05)
    text(x+0.4, y+0.05, ylabel, ha='center', va='bottom')
    text(x+0.4, y+0.05, ylabel, ha='center', va='bottom',
         bbox=dict(facecolor='red', alpha=0.5))                   # rectangular box around text

title("bar plot", fontsize=32, ha='center', va='bottom')
    
show()
